#!/usr/bin/env python
import logging

url = "http://172.16.236.140:8096/client/api?"
backend = "cloudstack"
ASYNC_JOB_TIMEOUT    = 300 #second
ASYNC_JOB_CHECK_TIME = 2  #second
logLevel = logging.DEBUG


#don't change it
logger = logging.getLogger("middle")
logger.setLevel(logLevel)
loggerch = logging.StreamHandler()
loggerch.setLevel(logLevel)
loggerformatter = logging.Formatter("%(asctime)s - %(module)s(%(lineno)d): %(message)s")
loggerch.setFormatter(loggerformatter)
logger.addHandler(loggerch)


# for test all

# create account
account="testaccount"
password="202cb962ac59075b964b07152d234b70"
email="test@123.com"
firstname="firstname"
lastname="lastname"
accounttype=1
domainid=1

# create securitygroup
securitygroupname="testsercuritygroup"
securitygroupingressprotocal="TCP"
securitygroupingressstartport=80
securitygroupingressendport=9999
securitygroupingresscidrlist="172.16.236.141/149"


# create zone
zonenetworktype = "basic"
zonename = "zone-25-test"
zonedns1 = "202.106.0.20"
zoneinternaldns1 = "172.16.236.30"

# create pod
podname = "pod-25-test"
podnetwork = "255.255.255.0"
podstartip = "172.16.236.141"
podendip = "172.16.236.149"
podgateway = "172.16.236.254"

# add cluster
clustername = "cluster-27-test"
clustertype = "CloudManaged"
clusterhypervisor = "XenServer"

# create iprange
vlanname = "untagged"
vlanforvirtualnetwork = "false"
vlanstartip = "172.16.236.141"
vlanendip = "172.16.236.149"
vlannetmask = "255.255.255.0"
vlangateway = "172.16.236.254"

# add host
hostusername = "root"
hostpassword = "redhat"
hosturl = "http://172.16.236.27"
hosthypervisor = "XenServer"

# add secondary storage
secondarystorageurl1 = "nfs://172.16.236.30/secondary-27"
secondarystorageurl2 = "nfs://172.16.205.180/home/share"

# create storage pool
storagepoolname = "primary-1"
storagepoolurl = "nfs://172.16.236.30/primary-27"

# deploy virtual machine
vmserviceofferingid = 1
vmtemplateid = 2

# create volume
volumename = "test25"
volumediskofferingid = 3
